package com.sky.dto;

import lombok.Data;

import java.io.Serializable;

@Data
public class PageDTO implements Serializable {
    private int page;

    private int pageSize;

    public void check() {
        if (page <= 0) {
            page = 1;
        }
        if (pageSize <= 0 || pageSize > 100){
            pageSize = 10;
        }
    }
}
